package cn.wolfcode.wechat.vo;

import lombok.Setter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 微信响应消息对象
 * @author chu
 */
@Setter
@XmlRootElement(name = "xml")
public class MessageResponseVo {
    /**
     * 接收方帐号（收到的OpenID）
     */
    private String ToUserName;
    /**
     * 开发者微信号
     */
    private String FromUserName;
    /**
     * 消息创建时间戳
     */
    private Long CreateTime;
    /**
     * 消息类型
     */
    private String MsgType;
    /**
     * 文本消息内容
     */
    private String Content;

    @XmlElement(name = "ToUserName")
    public String getToUserName() {
        return ToUserName;
    }

    @XmlElement(name = "FromUserName")
    public String getFromUserName() {
        return FromUserName;
    }

    @XmlElement(name = "CreateTime")
    public Long getCreateTime() {
        return CreateTime;
    }

    @XmlElement(name = "MsgType")
    public String getMsgType() {
        return MsgType;
    }

    @XmlElement(name = "Content")
    public String getContent() {
        return Content;
    }
}
